.class Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;
.super Ljava/lang/Object;
.source "CategoryFragment.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

.field final synthetic val$jsonObj:Lorg/json/JSONObject;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;Lorg/json/JSONObject;)V
    .registers 3
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    .prologue
    .line 188
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->val$jsonObj:Lorg/json/JSONObject;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    .prologue
    .line 192
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->this$0:Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->access$500(Lcom/brixd/niceapp/activity/fragment/CategoryFragment;)Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;->onRefreshComplete()V

    .line 193
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->val$jsonObj:Lorg/json/JSONObject;

    invoke-static {v1}, Lcom/brixd/niceapp/model/CategoryModel;->parseCategoryModels(Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v0

    .line 194
    .local v0, "categoryModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/CategoryModel;>;"
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_20

    .line 195
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->this$0:Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->val$jsonObj:Lorg/json/JSONObject;

    # invokes: Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->cacheCategoryAppData(Lorg/json/JSONObject;)V
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->access$600(Lcom/brixd/niceapp/activity/fragment/CategoryFragment;Lorg/json/JSONObject;)V

    .line 198
    :cond_20
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->this$0:Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->access$000(Lcom/brixd/niceapp/activity/fragment/CategoryFragment;)Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->setCategoryList(Ljava/util/List;)V

    .line 199
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->this$0:Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->access$000(Lcom/brixd/niceapp/activity/fragment/CategoryFragment;)Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->notifyDataSetChanged()V

    .line 200
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->this$0:Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    # invokes: Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->expandAllGroup()V
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->access$200(Lcom/brixd/niceapp/activity/fragment/CategoryFragment;)V

    .line 201
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5$1;->this$1:Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/CategoryFragment$5;->this$0:Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    const/4 v2, 0x0

    # setter for: Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->mIsFirstTimeRequest:Z
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->access$702(Lcom/brixd/niceapp/activity/fragment/CategoryFragment;Z)Z

    .line 202
    return-void
.end method
